package com.yys.zproject.utils;

import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;

/**
 * @author 14343
 * @version 1.0
 * @date 2025/9/24 13:59
 * @description: TODO
 */
public class JspPageUtils  {
    public static void forwardtoPageAndTipMsg(HttpServletRequest req, HttpServletResponse resp, String msg,String url) throws ServletException, IOException {
        req.setAttribute("msg", msg);
        req.getRequestDispatcher(url).forward(req, resp);
    }

}
